<?php

namespace app\beautiful\helper\payment;

use app\common\helper\payment\PaymentBaseHelper;





//这个就不用做啥支付的操作 只需要做付款到零钱的

class PartnerCommissionHelper extends PaymentBaseHelper{

    protected  $moudel = 'beautiful';

    protected  $orderKey = 'mpc'; //给一个KEY增大吞吐量

    

    

        //付款到用户零钱

    public function sendPartnerCommission($withdraw_id,$openId,$money){

        $app = $this->app;

        return $app->transfer->toBalance([

            'partner_trade_no'=> $this->moudel.$this->orderKey.$withdraw_id,

            'openid'          => $openId,

            'amount'          => $this->shopId == 20210003 ? '30': (int)($money * 100),

            'check_name'      => 'NO_CHECK',  

            'desc'            => '推广佣金',

        ]);

    }

}